package com.whfc.fmam.dao;

import com.whfc.fmam.entity.bo.FmamApiToken;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface FmamApiTokenMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(FmamApiToken record);

    int insertSelective(FmamApiToken record);

    FmamApiToken selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(FmamApiToken record);

    int updateByPrimaryKey(FmamApiToken record);

    /**
     * 查询accessToken
     *
     * @param accessToken
     * @return
     */
    FmamApiToken selectByAccessToken(@Param("accessToken") String accessToken);
}